import service from '@/base';
export default {
    //登录
    getUserInfo(params = {}) {
        return service.get('/userInfo.html', params).then(res => res.data);
    },

    //查询文章类型
    queryBlogArticleType(params = {}) {
        return service.post('/findArtcleType.html', params).then(res => res.data);
    },
    //添加文章类型deleteArticleType
    addBlogArticleType(params = {}) {
        return service.post('/addArticleType.html', params).then(res => res.data);
    },
    //删除文章类型
    deleteBlogArticleType(params = {}) {
        return service.post('/deleteArticleType.html', params).then(res => res.data);
    },
    //修改文章类型
    updateBlogArticleType(params = {}) {
        return service.post('/editArticleType.html', params).then(res => res.data);
    },
    //文章列表
    getArticleItemList(params = {}) {
        return service.post('/articleList.html', params).then(res => res.data);
    },
    //添加文章
    addBlogArticleItem(params = {}) {
        return service.post('/addArticle.html', params).then(res => res.data);
    },
    //删除文章
    deleteBlogArticleItem(params = {}) {
        return service.post('/deleteArticleItem.html', params).then(res => res.data);
    },
    //查找文章id
    getBlogArticleItem(params = {}) {
        return service.post('/getArticleFindById.html', params).then(res => res.data);
    },
    //修改文章addDiscuss
    eidtBlogArticleItem(params = {}) {
        return service.post('/editArticleItem.html', params).then(res => res.data);
    },
    //文章评论 queryDiscuss
    addBlogArticleDiscuss(params = {}) {
        return service.post('/addDiscuss.html', params).then(res => res.data);
    },
    //查文章评论 
    queryBlogArticleDiscuss(params = {}) {
        return service.post('/queryDiscuss.html', params).then(res => res.data);
    },
    //查找图书
    queryBooksByPageList(params = {}) {
        return service.post('/queryBooks.html', params).then(res => res.data);
    },
}